package com.aop;

import com.aop.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringApplication {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext-aop.xml");
        UserService userService = context.getBean("userService", UserService.class);
        // userService.createUser();
        userService.updateUser("lemon");
        // userService.selectById(10);
    }
}
